#ifndef VIDEO_WIDGET_H
#define VIDEO_WIDGET_H

#include <QWidget>
#include <QPainter>
#include "video_stream_capture.h"
#include "include.h"
#include <QTimer>
#include "ui_video_widget.h"

namespace Ui {
class Video_Widget;
}

class Video_Widget : public QWidget
{
    Q_OBJECT
    
public:
    explicit Video_Widget(QWidget *parent = 0);
    ~Video_Widget();
    
private:
    Ui::Video_Widget *ui;

    void paintEvent(QPaintEvent *);//绘制图像
    video_stream_capture vsrun;
    video_device* vd;
    QTimer* refresh_timer;

 private slots:
    void refresh_timeout();
};

#endif // VIDEO_WIDGET_H
